package com.ypan.uninstaller.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.ypan.uninstaller.R;

/**
 * 自定义进度条,当发起网络请求时显示该对话框，让用户等待
 */
public class CustomWaitingDialog extends Dialog{

	private int mMsgID = R.string.uninstalling;
	public CustomWaitingDialog(Context context, int msgID) {
		super(context,R.style.WaitingDialogStyle);
		mMsgID = msgID;
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.waiting_dialog);
		TextView tv = (TextView)findViewById(R.id.txt_custom_content);
		tv.setText(mMsgID);
		setCancelable(false);
	}
	
	
}
